package cn.witsky.rtp2ws.util;

import cn.witsky.rtp2ws.Server;

public class RedisKey {
	static String prefix = "rtp2ws:";

	static String getListKey() {
		return prefix + "list";
	}
	static String getUdpListKey() {
		return prefix + String.format("udpList:%s", Server.ServerName);
	}

	static String getCallListKey() {
		return prefix + String.format("callList:%s", Server.ServerName);
	}
	static String getCallListKey(String rtp2wsName) {
		return prefix + String.format("callList:%s",rtp2wsName);
	}
	static String getBindPortKey() {
		return prefix + String.format("bind:%s", Server.ServerName);
	}
	static String getRelationKey() {
		return prefix +"relation";
	}
	static String getCallBackUpKey(String callId) {
		return prefix+ String.format("bakup:call:%s",callId);
	}
}
